<template>
  <div>
    <h1>牛魔王</h1>
    <hong-hai-er></hong-hai-er>
    <lan-hai-er></lan-hai-er>
  </div>
</template>

<script>
import HongHaiEr from "./HongHaiEr.vue";
import LanHaiEr from "./LanHaiEr.vue";
export default {
  name: "",
  props: [""],
  data() {
    return {
      msg: "牛魔王上的消息",
    };
  },

  components: { HongHaiEr, LanHaiEr },

  computed: {},

  beforeMount() {},

  mounted() {
    console.log(this.$children);
    /* 在父元素中this.$children 可以获取到子元素的信息 */
  },

  methods: {},

  watch: {},
};
</script>
<style lang='' scoped>
</style>